//package com.southwind.service;
//
//import org.springframework.beans.factory.annotation.Autowired;
//
//@Service
//public class CustomerService {
//    @Autowired
//    private CustomerRepository customerRepository;
//
//    public Customer findOrCreateByOpenId(String openId) {
//        return customerRepository.findByCustomerId(openId)
//                .orElseGet(() -> {
//                    Customer newCustomer = new Customer();
//                    newCustomer.setCustomerId(openId);
//                    return customerRepository.save(newCustomer);
//                });
//    }
//}
